//
//  ZhangDanAddShangPinTableViewCell.m
//  ErJie
//
//  Created by yaorenjin on 2017/1/31.
//  Copyright © 2017年 yaorenjin. All rights reserved.
//

#import "ZhangDanAddShangPinTableViewCell.h"
#import "ShangPinEntity+CoreDataClass.h"

@implementation ZhangDanAddShangPinTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)reloadData:(id)data
{
    ShangPinEntity* spEntity = data;
    self.flNameLabel.text = spEntity.flName;
    self.countLabel.text = [spEntity.buyCount stringValue];
    self.shangPinNameLabel.text = spEntity.name;
}

@end
